<template>
  <div>
    <el-carousel :interval="4000" type="card" height="130px" arrow="never">
      <el-carousel-item v-for="(item,index) in items" :key="index">
        <img :src="item.image" alt="" style="width: 225px">
      </el-carousel-item>
    </el-carousel>
    <navigation-selected></navigation-selected>
    <div style="display: flex;flex-direction: row;justify-content: space-around">
      <div v-for="(item,index) in ads" :key="index">
        <img :src="item" alt="" style="width: 120px">
      </div>
    </div>
    <div style="display: flex;flex-direction: row;justify-content: left;align-items: center;text-align: center;">
      <img src="@/assets/icon/index/hot.png" style="width: 20px;height: 20px;margin-left: 5px;margin-right: 10px">
      <div>
        热门追剧
      </div>
    </div>
    <selected-blocks></selected-blocks>
    <div style="height: 62px"></div>
  </div>
</template>

<script>

import CarouselV2 from "@/components/content/Carousel/CarouselV2.vue";
import NavigationSelected from "@/components/views/index/selected/NavigationSelected.vue";
import SelectedBlocks from "@/components/views/index/selected/SelectedBlocks.vue";

export default {
  name: "selected",
  components: {SelectedBlocks, NavigationSelected, CarouselV2},
  methods: {
    handleRedirect(index) {
      this.$emit('handle', index)
    }
  },
  data() {
    return {
      items: [
        {image: require('@/assets/temp/11.png')},
        {image: require('@/assets/temp/12.png')},
        {image: require('@/assets/temp/13.png')},
      ],
      ads: [
        require('@/assets/icon/index/ad1.png'),
        require('@/assets/icon/index/ad2.png'),
        require('@/assets/icon/index/ad2.png'),
      ],

    }
  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>
